package cn.cdeden.knowledge.controller.online.factory;

import cn.cdeden.common.core.utils.page.TableDataInfo;
import cn.cdeden.knowledge.controller.online.search.SearchFilesInfo;
import cn.cdeden.knowledge.domain.dto.FilesTree;
import cn.cdeden.knowledge.domain.dto.PortalQueryParam;
import cn.cdeden.knowledge.domain.dto.SearchFilesInfoDto;
import cn.cdeden.knowledge.domain.vo.FileAnalysisDataVo;
import cn.cdeden.knowledge.service.EnterpriseFilesTreeService;
import cn.cdeden.system.api.model.LoginUser;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Slf4j
@RequiredArgsConstructor
@Component("SearchFiles_enterprise")
public class SearchFilesInfoEnterprise extends SearchFilesInfo {

    private final EnterpriseFilesTreeService service;


    @Override
    public TableDataInfo<FilesTree> searchInfo(SearchFilesInfoDto infoDto, Pageable pageable) {
        return service.searchFilesTree(infoDto, pageable);
    }

    @Override
    public TableDataInfo<FilesTree> queryNodeFileInfoPage(PortalQueryParam query, LoginUser userDto, Pageable pageable) {
        return null;
    }

    @Override
    public List<FilesTree> queryNodeFileInfo(PortalQueryParam query, LoginUser userDto) {
        return null;
    }

    @Override
    public List<FileAnalysisDataVo> getNewFileAnalysisData(Map<String, List<String>> resultMap) {
        return null;
    }
}
